package com.ys.feign;

import com.ys.common.R;
import com.ys.pojo.TradeGoodsNumberLog;
import com.ys.pojo.TradeOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("shop-goods")
public interface GoodsApi {
    @RequestMapping("/goods/findGoodsById")
    R findGoodsById(@RequestBody TradeOrder order);

    @RequestMapping("/goods/reduceGoodsNum")
    R reduceGoodsNum(@RequestBody TradeGoodsNumberLog goodsNumberLog);
}
